﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls
{
    /// <summary>
    /// EventAndDrugCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class EventAndDrugItemCtrl : UserControl
    {
        public EventAndDrugItemCtrl()
        {
            InitializeComponent();
        }

        public string DisplayName
        {
            set
            {

                _nameTxt.Text = string.Join("\u200B", value.ToCharArray());
            }
        }
        public string DisplayTime
        {
            set
            {
                _timeTxt.Text = value;
            }
        }

        public double CurFontSize
        {
            set
            {
                _timeTxt.FontSize = value;
                _nameTxt.FontSize = value;
            }
        }

        private void Grid_MouseMove(object sender, MouseEventArgs e)
        {
            _bor.BorderBrush = System.Windows.Media.Brushes.Blue;
        }

        private void Grid_MouseLeave(object sender, MouseEventArgs e)
        {
            _bor.BorderBrush = System.Windows.Media.Brushes.Transparent;
        }
    }
}
